<?php
$this->breadcrumbs=array(
	'Customers'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Customer', 'url'=>array('index')),
	array('label'=>'Create Customer', 'url'=>array('create')),
	array('label'=>'Update Customer', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Customer', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Customer', 'url'=>array('admin')),
);
?>

<h1>View Customer #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'first_name',
		'middle_initial',
		'last_name',
		'house_number',
		'street',
		'area',
		'city',
		'contact_no',
		'email',
		'phone',
	),
)); ?>

</br>
<form align="right" action="/atrs/index.php/Reservation/create">
<?php
$_SESSION['key']=$model->id;

?>

<input type="submit" value="Create a reservation for <?php echo $model->first_name." ".$model->last_name ?> "/>
</form>



